export enum ResultEnum {
  SUCCESS = 0,
  ERROR = -1,
}

export enum ResultMessage {
  OperationSuccess = '操作成功',
  OperationFailed = '操作失败',

  ApiTimeoutMessage = '接口请求超时',
  ApiRequestFailed = '请求出错，请稍候重试',
  NetworkException = '网络异常',
  NetworkExceptionMsg = '网络异常，请检查您的网络连接是否正常!',

  ErrorMessage = '操作失败,系统异常!',
  ErrMsg401 = '用户没有权限（令牌、用户名、密码错误）!',
  ErrMsg403 = '用户得到授权，但是访问是被禁止的!',
  ErrMsg404 = '网络请求错误，未找到该资源！',
  ErrMsg405 = '网络请求错误，请求方法未允许！',
  ErrMsg408 = '网络请求超时！',
  ErrMsg500 = '服务器错误，请联系管理员！',
  ErrMsg501 = '网络未实现！',
  ErrMsg502 = '网络错误！',
  ErrMsg503 = '服务不可用，服务器暂时过载或维护！',
  ErrMsg504 = '网络超时！',
  ErrMsg505 = 'http版本不支持该请求！',
}

export enum DefaultPwd {
  Manage = 'Mm123456.',
  Gov = 'Gg123456.',
  Co = 'Cc123456.'
}


export enum AlarmHandleStatus {
  UN_DEAL_WITH = '未处理',
  REPORTED = '已上报',
  FALSE_ALARM = 'AI误报'
}

export enum MaintenancePlanHandleStatus {
  UN_DEAL_WITH = '未处理',
  REPORTED = '已上报',
  DELAYED = '已延期',
  UNDER_DISPOSAL = '处置中',
  DEAL_WITH = '已完成'
}

export enum LayerType {
  Traffic = 'Traffic',
  Satellite = 'Satellite'
}

export enum StatusLabel {
  'DRIVING' = '行驶中',
  'OFFLINE' = '离线',
  'ALARMING' = '报警',
  'IDLE' = '怠速',
  'PARKING' = '停车',
  'UNLOCATED' = '未定位',
}


export enum LiveStatus {
  New = '请等待',
  Living = '播放中',
  PlayCommandSent = '等待应答',
  Error_OpenStreamGrabberFailed = '发生错误',
  Error_DeviceOffline = '设备已离线',
}

export enum PasswordStrength {
  Weak = '弱',
  Middling = '中',
  Strong = '强',
}
